<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <script>
        /* 加了static关键字的方法是一个静态方法,是一个类方法,不用new,可以通过类名直接调用 */
        class Http{
            static request(){
                console.log("http")
            }
            say(){
                console.log("say")
            }
        }
        Http.request();
        var p = new Http();
        p.say()
    </script>
</body>
</html>